package top.mataiji.manager.pojo;

import java.util.ArrayList;
import java.util.List;

public class BookExample {
    /**
     * tb_book
     */
    protected String orderByClause;

    /**
     * tb_book
     */
    protected boolean distinct;

    /**
     * tb_book
     */
    protected List<Criteria> oredCriteria;

    public BookExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    /**
    /* 
     * @author zhoubin 
     * @since 1.0.0
     */
    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andBookidIsNull() {
            addCriterion("bookId is null");
            return (Criteria) this;
        }

        public Criteria andBookidIsNotNull() {
            addCriterion("bookId is not null");
            return (Criteria) this;
        }

        public Criteria andBookidEqualTo(Integer value) {
            addCriterion("bookId =", value, "bookid");
            return (Criteria) this;
        }

        public Criteria andBookidNotEqualTo(Integer value) {
            addCriterion("bookId <>", value, "bookid");
            return (Criteria) this;
        }

        public Criteria andBookidGreaterThan(Integer value) {
            addCriterion("bookId >", value, "bookid");
            return (Criteria) this;
        }

        public Criteria andBookidGreaterThanOrEqualTo(Integer value) {
            addCriterion("bookId >=", value, "bookid");
            return (Criteria) this;
        }

        public Criteria andBookidLessThan(Integer value) {
            addCriterion("bookId <", value, "bookid");
            return (Criteria) this;
        }

        public Criteria andBookidLessThanOrEqualTo(Integer value) {
            addCriterion("bookId <=", value, "bookid");
            return (Criteria) this;
        }

        public Criteria andBookidIn(List<Integer> values) {
            addCriterion("bookId in", values, "bookid");
            return (Criteria) this;
        }

        public Criteria andBookidNotIn(List<Integer> values) {
            addCriterion("bookId not in", values, "bookid");
            return (Criteria) this;
        }

        public Criteria andBookidBetween(Integer value1, Integer value2) {
            addCriterion("bookId between", value1, value2, "bookid");
            return (Criteria) this;
        }

        public Criteria andBookidNotBetween(Integer value1, Integer value2) {
            addCriterion("bookId not between", value1, value2, "bookid");
            return (Criteria) this;
        }

        public Criteria andBooknameIsNull() {
            addCriterion("bookname is null");
            return (Criteria) this;
        }

        public Criteria andBooknameIsNotNull() {
            addCriterion("bookname is not null");
            return (Criteria) this;
        }

        public Criteria andBooknameEqualTo(String value) {
            addCriterion("bookname =", value, "bookname");
            return (Criteria) this;
        }

        public Criteria andBooknameNotEqualTo(String value) {
            addCriterion("bookname <>", value, "bookname");
            return (Criteria) this;
        }

        public Criteria andBooknameGreaterThan(String value) {
            addCriterion("bookname >", value, "bookname");
            return (Criteria) this;
        }

        public Criteria andBooknameGreaterThanOrEqualTo(String value) {
            addCriterion("bookname >=", value, "bookname");
            return (Criteria) this;
        }

        public Criteria andBooknameLessThan(String value) {
            addCriterion("bookname <", value, "bookname");
            return (Criteria) this;
        }

        public Criteria andBooknameLessThanOrEqualTo(String value) {
            addCriterion("bookname <=", value, "bookname");
            return (Criteria) this;
        }

        public Criteria andBooknameLike(String value) {
            addCriterion("bookname like", value, "bookname");
            return (Criteria) this;
        }

        public Criteria andBooknameNotLike(String value) {
            addCriterion("bookname not like", value, "bookname");
            return (Criteria) this;
        }

        public Criteria andBooknameIn(List<String> values) {
            addCriterion("bookname in", values, "bookname");
            return (Criteria) this;
        }

        public Criteria andBooknameNotIn(List<String> values) {
            addCriterion("bookname not in", values, "bookname");
            return (Criteria) this;
        }

        public Criteria andBooknameBetween(String value1, String value2) {
            addCriterion("bookname between", value1, value2, "bookname");
            return (Criteria) this;
        }

        public Criteria andBooknameNotBetween(String value1, String value2) {
            addCriterion("bookname not between", value1, value2, "bookname");
            return (Criteria) this;
        }

        public Criteria andEbookaddressIsNull() {
            addCriterion("ebookaddress is null");
            return (Criteria) this;
        }

        public Criteria andEbookaddressIsNotNull() {
            addCriterion("ebookaddress is not null");
            return (Criteria) this;
        }

        public Criteria andEbookaddressEqualTo(String value) {
            addCriterion("ebookaddress =", value, "ebookaddress");
            return (Criteria) this;
        }

        public Criteria andEbookaddressNotEqualTo(String value) {
            addCriterion("ebookaddress <>", value, "ebookaddress");
            return (Criteria) this;
        }

        public Criteria andEbookaddressGreaterThan(String value) {
            addCriterion("ebookaddress >", value, "ebookaddress");
            return (Criteria) this;
        }

        public Criteria andEbookaddressGreaterThanOrEqualTo(String value) {
            addCriterion("ebookaddress >=", value, "ebookaddress");
            return (Criteria) this;
        }

        public Criteria andEbookaddressLessThan(String value) {
            addCriterion("ebookaddress <", value, "ebookaddress");
            return (Criteria) this;
        }

        public Criteria andEbookaddressLessThanOrEqualTo(String value) {
            addCriterion("ebookaddress <=", value, "ebookaddress");
            return (Criteria) this;
        }

        public Criteria andEbookaddressLike(String value) {
            addCriterion("ebookaddress like", value, "ebookaddress");
            return (Criteria) this;
        }

        public Criteria andEbookaddressNotLike(String value) {
            addCriterion("ebookaddress not like", value, "ebookaddress");
            return (Criteria) this;
        }

        public Criteria andEbookaddressIn(List<String> values) {
            addCriterion("ebookaddress in", values, "ebookaddress");
            return (Criteria) this;
        }

        public Criteria andEbookaddressNotIn(List<String> values) {
            addCriterion("ebookaddress not in", values, "ebookaddress");
            return (Criteria) this;
        }

        public Criteria andEbookaddressBetween(String value1, String value2) {
            addCriterion("ebookaddress between", value1, value2, "ebookaddress");
            return (Criteria) this;
        }

        public Criteria andEbookaddressNotBetween(String value1, String value2) {
            addCriterion("ebookaddress not between", value1, value2, "ebookaddress");
            return (Criteria) this;
        }

        public Criteria andIsfreeIsNull() {
            addCriterion("isFree is null");
            return (Criteria) this;
        }

        public Criteria andIsfreeIsNotNull() {
            addCriterion("isFree is not null");
            return (Criteria) this;
        }

        public Criteria andIsfreeEqualTo(Integer value) {
            addCriterion("isFree =", value, "isfree");
            return (Criteria) this;
        }

        public Criteria andIsfreeNotEqualTo(Integer value) {
            addCriterion("isFree <>", value, "isfree");
            return (Criteria) this;
        }

        public Criteria andIsfreeGreaterThan(Integer value) {
            addCriterion("isFree >", value, "isfree");
            return (Criteria) this;
        }

        public Criteria andIsfreeGreaterThanOrEqualTo(Integer value) {
            addCriterion("isFree >=", value, "isfree");
            return (Criteria) this;
        }

        public Criteria andIsfreeLessThan(Integer value) {
            addCriterion("isFree <", value, "isfree");
            return (Criteria) this;
        }

        public Criteria andIsfreeLessThanOrEqualTo(Integer value) {
            addCriterion("isFree <=", value, "isfree");
            return (Criteria) this;
        }

        public Criteria andIsfreeIn(List<Integer> values) {
            addCriterion("isFree in", values, "isfree");
            return (Criteria) this;
        }

        public Criteria andIsfreeNotIn(List<Integer> values) {
            addCriterion("isFree not in", values, "isfree");
            return (Criteria) this;
        }

        public Criteria andIsfreeBetween(Integer value1, Integer value2) {
            addCriterion("isFree between", value1, value2, "isfree");
            return (Criteria) this;
        }

        public Criteria andIsfreeNotBetween(Integer value1, Integer value2) {
            addCriterion("isFree not between", value1, value2, "isfree");
            return (Criteria) this;
        }

        public Criteria andIsentityIsNull() {
            addCriterion("isEntity is null");
            return (Criteria) this;
        }

        public Criteria andIsentityIsNotNull() {
            addCriterion("isEntity is not null");
            return (Criteria) this;
        }

        public Criteria andIsentityEqualTo(Integer value) {
            addCriterion("isEntity =", value, "isentity");
            return (Criteria) this;
        }

        public Criteria andIsentityNotEqualTo(Integer value) {
            addCriterion("isEntity <>", value, "isentity");
            return (Criteria) this;
        }

        public Criteria andIsentityGreaterThan(Integer value) {
            addCriterion("isEntity >", value, "isentity");
            return (Criteria) this;
        }

        public Criteria andIsentityGreaterThanOrEqualTo(Integer value) {
            addCriterion("isEntity >=", value, "isentity");
            return (Criteria) this;
        }

        public Criteria andIsentityLessThan(Integer value) {
            addCriterion("isEntity <", value, "isentity");
            return (Criteria) this;
        }

        public Criteria andIsentityLessThanOrEqualTo(Integer value) {
            addCriterion("isEntity <=", value, "isentity");
            return (Criteria) this;
        }

        public Criteria andIsentityIn(List<Integer> values) {
            addCriterion("isEntity in", values, "isentity");
            return (Criteria) this;
        }

        public Criteria andIsentityNotIn(List<Integer> values) {
            addCriterion("isEntity not in", values, "isentity");
            return (Criteria) this;
        }

        public Criteria andIsentityBetween(Integer value1, Integer value2) {
            addCriterion("isEntity between", value1, value2, "isentity");
            return (Criteria) this;
        }

        public Criteria andIsentityNotBetween(Integer value1, Integer value2) {
            addCriterion("isEntity not between", value1, value2, "isentity");
            return (Criteria) this;
        }

        public Criteria andHowintegralIsNull() {
            addCriterion("howIntegral is null");
            return (Criteria) this;
        }

        public Criteria andHowintegralIsNotNull() {
            addCriterion("howIntegral is not null");
            return (Criteria) this;
        }

        public Criteria andHowintegralEqualTo(Integer value) {
            addCriterion("howIntegral =", value, "howintegral");
            return (Criteria) this;
        }

        public Criteria andHowintegralNotEqualTo(Integer value) {
            addCriterion("howIntegral <>", value, "howintegral");
            return (Criteria) this;
        }

        public Criteria andHowintegralGreaterThan(Integer value) {
            addCriterion("howIntegral >", value, "howintegral");
            return (Criteria) this;
        }

        public Criteria andHowintegralGreaterThanOrEqualTo(Integer value) {
            addCriterion("howIntegral >=", value, "howintegral");
            return (Criteria) this;
        }

        public Criteria andHowintegralLessThan(Integer value) {
            addCriterion("howIntegral <", value, "howintegral");
            return (Criteria) this;
        }

        public Criteria andHowintegralLessThanOrEqualTo(Integer value) {
            addCriterion("howIntegral <=", value, "howintegral");
            return (Criteria) this;
        }

        public Criteria andHowintegralIn(List<Integer> values) {
            addCriterion("howIntegral in", values, "howintegral");
            return (Criteria) this;
        }

        public Criteria andHowintegralNotIn(List<Integer> values) {
            addCriterion("howIntegral not in", values, "howintegral");
            return (Criteria) this;
        }

        public Criteria andHowintegralBetween(Integer value1, Integer value2) {
            addCriterion("howIntegral between", value1, value2, "howintegral");
            return (Criteria) this;
        }

        public Criteria andHowintegralNotBetween(Integer value1, Integer value2) {
            addCriterion("howIntegral not between", value1, value2, "howintegral");
            return (Criteria) this;
        }

        public Criteria andBookpriceIsNull() {
            addCriterion("bookprice is null");
            return (Criteria) this;
        }

        public Criteria andBookpriceIsNotNull() {
            addCriterion("bookprice is not null");
            return (Criteria) this;
        }

        public Criteria andBookpriceEqualTo(Long value) {
            addCriterion("bookprice =", value, "bookprice");
            return (Criteria) this;
        }

        public Criteria andBookpriceNotEqualTo(Long value) {
            addCriterion("bookprice <>", value, "bookprice");
            return (Criteria) this;
        }

        public Criteria andBookpriceGreaterThan(Long value) {
            addCriterion("bookprice >", value, "bookprice");
            return (Criteria) this;
        }

        public Criteria andBookpriceGreaterThanOrEqualTo(Long value) {
            addCriterion("bookprice >=", value, "bookprice");
            return (Criteria) this;
        }

        public Criteria andBookpriceLessThan(Long value) {
            addCriterion("bookprice <", value, "bookprice");
            return (Criteria) this;
        }

        public Criteria andBookpriceLessThanOrEqualTo(Long value) {
            addCriterion("bookprice <=", value, "bookprice");
            return (Criteria) this;
        }

        public Criteria andBookpriceIn(List<Long> values) {
            addCriterion("bookprice in", values, "bookprice");
            return (Criteria) this;
        }

        public Criteria andBookpriceNotIn(List<Long> values) {
            addCriterion("bookprice not in", values, "bookprice");
            return (Criteria) this;
        }

        public Criteria andBookpriceBetween(Long value1, Long value2) {
            addCriterion("bookprice between", value1, value2, "bookprice");
            return (Criteria) this;
        }

        public Criteria andBookpriceNotBetween(Long value1, Long value2) {
            addCriterion("bookprice not between", value1, value2, "bookprice");
            return (Criteria) this;
        }

        public Criteria andTypeidIsNull() {
            addCriterion("typeid is null");
            return (Criteria) this;
        }

        public Criteria andTypeidIsNotNull() {
            addCriterion("typeid is not null");
            return (Criteria) this;
        }

        public Criteria andTypeidEqualTo(Integer value) {
            addCriterion("typeid =", value, "typeid");
            return (Criteria) this;
        }

        public Criteria andTypeidNotEqualTo(Integer value) {
            addCriterion("typeid <>", value, "typeid");
            return (Criteria) this;
        }

        public Criteria andTypeidGreaterThan(Integer value) {
            addCriterion("typeid >", value, "typeid");
            return (Criteria) this;
        }

        public Criteria andTypeidGreaterThanOrEqualTo(Integer value) {
            addCriterion("typeid >=", value, "typeid");
            return (Criteria) this;
        }

        public Criteria andTypeidLessThan(Integer value) {
            addCriterion("typeid <", value, "typeid");
            return (Criteria) this;
        }

        public Criteria andTypeidLessThanOrEqualTo(Integer value) {
            addCriterion("typeid <=", value, "typeid");
            return (Criteria) this;
        }

        public Criteria andTypeidIn(List<Integer> values) {
            addCriterion("typeid in", values, "typeid");
            return (Criteria) this;
        }

        public Criteria andTypeidNotIn(List<Integer> values) {
            addCriterion("typeid not in", values, "typeid");
            return (Criteria) this;
        }

        public Criteria andTypeidBetween(Integer value1, Integer value2) {
            addCriterion("typeid between", value1, value2, "typeid");
            return (Criteria) this;
        }

        public Criteria andTypeidNotBetween(Integer value1, Integer value2) {
            addCriterion("typeid not between", value1, value2, "typeid");
            return (Criteria) this;
        }
    }

    /**
    /* 
     * @author zhoubin 
     * @since 1.0.0
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    /**
    /* 
     * @author zhoubin 
     * @since 1.0.0
     */
    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}